package android.Spider;

import android.content.Context;
import android.content.Intent;
import android.content.IntentReceiver;
import android.os.Bundle;

public class MessageReceiver extends IntentReceiver {

	static final String ACTION = "android.Spider.MessageReceiver.ACTION_DATA_MESSAGE";

	@Override
	public void onReceiveIntent(Context context, Intent intent)
	{
        if (intent.getAction().equals(ACTION))
        {
            Bundle bundle = intent.getExtras();
            if (bundle != null)
            	context.startService(new Intent(context, SpiderListener.class), bundle);
        }
	}
}
